﻿<Window x:Class="wpf3.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Hóa đơn bán hàng" Height="350" Width="750">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <ToolBarTray Grid.Row="0">
            <ToolBar Band="1" BandIndex="1">
                <Button Name="Mnnew" ToolTip="New">
                    <StackPanel Orientation="Horizontal">
                        <Image HorizontalAlignment="Right" Source="D:\Images\NewDocumentHS.png"></Image>
                        <TextBlock VerticalAlignment="Center">Thêm mới</TextBlock>
                    </StackPanel>
                </Button>
                <Button Name="Mnnew1" ToolTip="New">
                    <StackPanel Orientation="Horizontal">
                        <Image HorizontalAlignment="Right" Source="D:\images\Properties.png"></Image>
                        <TextBlock VerticalAlignment="Center">Sửa</TextBlock>
                    </StackPanel>
                </Button>
                <Button Name="Mnnew2" ToolTip="New">
                    <StackPanel Orientation="Horizontal">
                        <Image HorizontalAlignment="Right" Source="D:\images\DeleteHS.png"></Image>
                        <TextBlock VerticalAlignment="Center">Xóa</TextBlock>
                    </StackPanel>
                </Button>
                <Separator/>
                <Button Name="Mnnew3" ToolTip="New">
                    <StackPanel Orientation="Horizontal">
                        <Image HorizontalAlignment="Right" Source="D:\images\Find_VS.png"></Image>
                        <TextBlock VerticalAlignment="Center">Tìm kiếm</TextBlock>
                    </StackPanel>
                </Button>
                <Button ToolTip="Print">
                    <StackPanel Orientation="Horizontal">
                        <Image Width="16" Height="16" Source="D:\Images\PrintHS.png"/>
                        <TextBlock  VerticalAlignment="Center">In</TextBlock>

                    </StackPanel>
                </Button>
                <Separator/>
                <Button ToolTip="Close" Name="btClose" >
                    <StackPanel Orientation="Horizontal">
                        <Image Width="16" Height="16" Source="D:\Images\StopHS.png"  />
                        <TextBlock  VerticalAlignment="Center">Thoát</TextBlock>
                    </StackPanel>
                </Button>

            </ToolBar>
        </ToolBarTray>
        <DataGrid Name="datagrid" Grid.Row="1" AutoGenerateColumns="False">

            <DataGrid.Columns>
                <DataGridTextColumn Header="Số hóa đơn" Width="100" ></DataGridTextColumn>
                <DataGridTextColumn Header="Tên hàng" Width="100" ></DataGridTextColumn>
                <DataGridTextColumn Header="Số lượng" Width="100" ></DataGridTextColumn>
                <DataGridTextColumn Header="Đơn giá" Width="100" ></DataGridTextColumn>
                <DataGridTextColumn Header="Trị giá" Width="100" ></DataGridTextColumn>
                <DataGridTextColumn Header="Khuyến mãi" Width="100" ></DataGridTextColumn>
                <DataGridTextColumn Header="Diễn giải" Width="200" ></DataGridTextColumn>
            </DataGrid.Columns>
        </DataGrid>

        <StatusBar  Grid.Row="2" >
            <StatusBarItem Name="sbiSohd" Content="Tổng số hóa đơn: 05"/>
        </StatusBar>

    </Grid>
</Window>
